<!DOCTYPE html>
<html>
    <head>
        <title>demo</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
        <style>
            body {
                font-family: Monospace;
                background-color: #f0f0f0;
                margin: 0px;
                overflow: hidden;
            }
        </style>
    </head>
    <body>
        <script src="https://cdn.bootcdn.net/ajax/libs/three.js/73/three.js"></script>
        <script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
        <script src="https://cdn.bootcdn.net/ajax/libs/tween.js/0.11.0/Tween.min.js"></script>
		<script src="https://unpkg.com/three@0.73.1/examples/js/controls/TrackballControls.js"></script>
        <script src="https://cdn.bootcdn.net/ajax/libs/stats.js/10/Stats.min.js"></script>
        <script>

            var jsonstr = '[{"boxId":"942677801021516","x":-74.900002,"y":-102.000000,"z":-555.000000,"width":82.000000,"height":56.000000,"length":82.000000,"weight":206.100006,"platform":"platform05","order":1,"material":"","type":1,"place":100},{"boxId":"942677801021515","x":-77.400002,"y":-42.500000,"z":-557.500000,"width":77.000000,"height":63.000000,"length":77.000000,"weight":139.500000,"platform":"platform09","order":2,"material":"","type":1,"place":100},{"boxId":"942677801023428","x":-77.400002,"y":20.500000,"z":-557.500000,"width":77.000000,"height":63.000000,"length":77.000000,"weight":86.500000,"platform":"platform09","order":3,"material":"","type":1,"place":100},{"boxId":"94267780102A262","x":-77.400002,"y":83.500000,"z":-557.500000,"width":77.000000,"height":63.000000,"length":77.000000,"weight":73.500000,"platform":"platform09","order":4,"material":"","type":1,"place":100},{"boxId":"94267780101P065","x":-96.650002,"y":120.000000,"z":-578.250000,"width":35.500000,"height":10.000000,"length":38.500000,"weight":0.950000,"platform":"platform09","order":5,"material":"","type":1,"place":200},{"boxId":"942677801022598","x":-58.150002,"y":120.000000,"z":-578.250000,"width":35.500000,"height":10.000000,"length":38.500000,"weight":0.700000,"platform":"platform09","order":6,"material":"","type":1,"place":200},{"boxId":"942677801021694","x":-97.150002,"y":119.750000,"z":-549.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":1.780000,"platform":"platform09","order":7,"material":"","type":1,"place":200},{"boxId":"942677801021624","x":-59.650002,"y":119.750000,"z":-549.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":1.200000,"platform":"platform09","order":8,"material":"","type":1,"place":200},{"boxId":"942677801021621","x":-97.150002,"y":119.750000,"z":-526.750000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":1.200000,"platform":"platform09","order":9,"material":"","type":1,"place":200},{"boxId":"942677801021617","x":-59.650002,"y":119.750000,"z":-526.750000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":1.150000,"platform":"platform09","order":10,"material":"","type":1,"place":200},{"boxId":"942677801025904","x":-11.650000,"y":-108.400002,"z":-565.500000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":48.500000,"platform":"platform09","order":11,"material":"","type":1,"place":100},{"boxId":"94267780102A273","x":32.849998,"y":-108.400002,"z":-565.500000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":48.000000,"platform":"platform09","order":12,"material":"","type":1,"place":100},{"boxId":"94267780101Z781","x":77.349998,"y":-108.400002,"z":-565.500000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":46.500000,"platform":"platform09","order":13,"material":"","type":1,"place":100},{"boxId":"942677801021607","x":-11.650000,"y":-65.199997,"z":-565.500000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":46.500000,"platform":"platform09","order":14,"material":"","type":1,"place":100},{"boxId":"942677801021605","x":32.849998,"y":-65.199997,"z":-565.500000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":46.500000,"platform":"platform09","order":15,"material":"","type":1,"place":100},{"boxId":"942677801021604","x":77.349998,"y":-65.199997,"z":-565.500000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":46.500000,"platform":"platform09","order":16,"material":"","type":1,"place":100},{"boxId":"942677801021606","x":-11.650000,"y":-22.000000,"z":-565.500000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":46.500000,"platform":"platform09","order":17,"material":"","type":1,"place":100},{"boxId":"942677801021603","x":32.849998,"y":-22.000000,"z":-565.500000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":46.000000,"platform":"platform09","order":18,"material":"","type":1,"place":100},{"boxId":"942677801025303","x":77.349998,"y":-22.000000,"z":-565.500000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":37.500000,"platform":"platform09","order":19,"material":"","type":1,"place":100},{"boxId":"942677801025307","x":-11.650000,"y":21.200001,"z":-565.500000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":37.500000,"platform":"platform09","order":20,"material":"","type":1,"place":100},{"boxId":"942677801025309","x":32.849998,"y":21.200001,"z":-565.500000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":37.500000,"platform":"platform09","order":21,"material":"","type":1,"place":100},{"boxId":"942677801024660","x":77.349998,"y":21.200001,"z":-565.500000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":37.000000,"platform":"platform09","order":22,"material":"","type":1,"place":100},{"boxId":"942677801023257","x":-11.650000,"y":64.400002,"z":-565.500000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":34.000000,"platform":"platform09","order":23,"material":"","type":1,"place":100},{"boxId":"942677801023258","x":32.849998,"y":64.400002,"z":-565.500000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":34.000000,"platform":"platform09","order":24,"material":"","type":1,"place":100},{"boxId":"942677801023253","x":77.349998,"y":64.400002,"z":-565.500000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":34.000000,"platform":"platform09","order":25,"material":"","type":1,"place":100},{"boxId":"942677801023254","x":-11.650000,"y":107.599998,"z":-565.500000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":34.000000,"platform":"platform09","order":26,"material":"","type":1,"place":100},{"boxId":"942677801021658","x":32.849998,"y":107.599998,"z":-565.500000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":34.000000,"platform":"platform09","order":27,"material":"","type":1,"place":100},{"boxId":"942677801023256","x":77.349998,"y":107.599998,"z":-565.500000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":34.000000,"platform":"platform09","order":28,"material":"","type":1,"place":100},{"boxId":"942677801023261","x":-3.400000,"y":-108.400002,"z":-512.750000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":34.000000,"platform":"platform09","order":29,"material":"","type":1,"place":200},{"boxId":"942677801023260","x":57.599998,"y":-108.400002,"z":-512.750000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":34.000000,"platform":"platform09","order":30,"material":"","type":1,"place":200},{"boxId":"942677801023259","x":-3.400000,"y":-65.199997,"z":-512.750000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":34.000000,"platform":"platform09","order":31,"material":"","type":1,"place":200},{"boxId":"942677801023255","x":57.599998,"y":-65.199997,"z":-512.750000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":33.500000,"platform":"platform09","order":32,"material":"","type":1,"place":200},{"boxId":"942677801023252","x":-3.400000,"y":-22.000000,"z":-512.750000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":33.500000,"platform":"platform09","order":33,"material":"","type":1,"place":200},{"boxId":"942677801021640","x":57.599998,"y":-22.000000,"z":-512.750000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":33.500000,"platform":"platform09","order":34,"material":"","type":1,"place":200},{"boxId":"942677801025912","x":-3.400000,"y":21.200001,"z":-512.750000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":30.000000,"platform":"platform09","order":35,"material":"","type":1,"place":200},{"boxId":"942677801025127","x":57.599998,"y":21.200001,"z":-512.750000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":30.000000,"platform":"platform09","order":36,"material":"","type":1,"place":200},{"boxId":"942677801021729","x":-3.400000,"y":64.400002,"z":-512.750000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":27.500000,"platform":"platform09","order":37,"material":"","type":1,"place":200},{"boxId":"942677801021733","x":57.599998,"y":64.400002,"z":-512.750000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":27.500000,"platform":"platform09","order":38,"material":"","type":1,"place":200},{"boxId":"942677801021725","x":-3.400000,"y":107.599998,"z":-512.750000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":27.000000,"platform":"platform09","order":39,"material":"","type":1,"place":200},{"boxId":"942677801021471","x":57.599998,"y":107.599998,"z":-512.750000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":27.000000,"platform":"platform09","order":40,"material":"","type":1,"place":200},{"boxId":"942677801021618","x":99.349998,"y":-125.250000,"z":-516.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":1.150000,"platform":"platform09","order":41,"material":"","type":1,"place":100},{"boxId":"942677801020813","x":99.349998,"y":-115.750000,"z":-516.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":1.150000,"platform":"platform09","order":42,"material":"","type":1,"place":100},{"boxId":"942677801021623","x":99.349998,"y":-106.250000,"z":-516.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":1.150000,"platform":"platform09","order":43,"material":"","type":1,"place":100},{"boxId":"942677801021627","x":99.349998,"y":-96.750000,"z":-516.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":1.150000,"platform":"platform09","order":44,"material":"","type":1,"place":100},{"boxId":"942677801021622","x":99.349998,"y":-87.250000,"z":-516.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":1.150000,"platform":"platform09","order":45,"material":"","type":1,"place":100},{"boxId":"942677801021619","x":99.349998,"y":-77.750000,"z":-516.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":1.150000,"platform":"platform09","order":46,"material":"","type":1,"place":100},{"boxId":"942677801021628","x":99.349998,"y":-68.250000,"z":-516.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":1.150000,"platform":"platform09","order":47,"material":"","type":1,"place":100},{"boxId":"942677801021625","x":99.349998,"y":-58.750000,"z":-516.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":1.150000,"platform":"platform09","order":48,"material":"","type":1,"place":100},{"boxId":"942677801021626","x":99.349998,"y":-49.250000,"z":-516.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":1.150000,"platform":"platform09","order":49,"material":"","type":1,"place":100},{"boxId":"942677801021620","x":99.349998,"y":-39.750000,"z":-516.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":1.150000,"platform":"platform09","order":50,"material":"","type":1,"place":100},{"boxId":"94267780101P410","x":99.349998,"y":-30.250000,"z":-516.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":0.750000,"platform":"platform09","order":51,"material":"","type":1,"place":100},{"boxId":"94267780102A250","x":99.349998,"y":-20.750000,"z":-516.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":0.540000,"platform":"platform09","order":52,"material":"","type":1,"place":100},{"boxId":"942677801022621","x":99.349998,"y":-11.250000,"z":-516.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":0.450000,"platform":"platform09","order":53,"material":"","type":1,"place":100},{"boxId":"942677801023443","x":4.600000,"y":-77.699997,"z":-452.000000,"width":77.000000,"height":104.599998,"length":77.000000,"weight":72.500000,"platform":"platform09","order":54,"material":"","type":1,"place":100},{"boxId":"942677801023445","x":4.600000,"y":-77.699997,"z":-375.000000,"width":77.000000,"height":104.599998,"length":77.000000,"weight":72.500000,"platform":"platform09","order":55,"material":"","type":1,"place":100},{"boxId":"942677801023446","x":4.600000,"y":-77.699997,"z":-298.000000,"width":77.000000,"height":104.599998,"length":77.000000,"weight":72.000000,"platform":"platform09","order":56,"material":"","type":1,"place":100},{"boxId":"942677801023457","x":4.600000,"y":-77.699997,"z":-221.000000,"width":77.000000,"height":104.599998,"length":77.000000,"weight":71.500000,"platform":"platform09","order":57,"material":"","type":1,"place":100},{"boxId":"942677801023473","x":4.600000,"y":-77.699997,"z":-144.000000,"width":77.000000,"height":104.599998,"length":77.000000,"weight":71.500000,"platform":"platform09","order":58,"material":"","type":1,"place":100},{"boxId":"942677801023464","x":4.600000,"y":-77.699997,"z":-67.000000,"width":77.000000,"height":104.599998,"length":77.000000,"weight":71.000000,"platform":"platform09","order":59,"material":"","type":1,"place":100},{"boxId":"942677801023469","x":4.600000,"y":-77.699997,"z":10.000000,"width":77.000000,"height":104.599998,"length":77.000000,"weight":71.000000,"platform":"platform09","order":60,"material":"","type":1,"place":100},{"boxId":"942677801023481","x":4.600000,"y":-77.699997,"z":87.000000,"width":77.000000,"height":104.599998,"length":77.000000,"weight":71.000000,"platform":"platform09","order":61,"material":"","type":1,"place":100},{"boxId":"942677801023470","x":4.600000,"y":-77.699997,"z":164.000000,"width":77.000000,"height":104.599998,"length":77.000000,"weight":70.500000,"platform":"platform09","order":62,"material":"","type":1,"place":100},{"boxId":"942677801023475","x":4.600000,"y":-77.699997,"z":241.000000,"width":77.000000,"height":104.599998,"length":77.000000,"weight":70.500000,"platform":"platform09","order":63,"material":"","type":1,"place":100},{"boxId":"942677801023479","x":4.600000,"y":-77.699997,"z":318.000000,"width":77.000000,"height":104.599998,"length":77.000000,"weight":70.500000,"platform":"platform09","order":64,"material":"","type":1,"place":100},{"boxId":"942677801023485","x":4.600000,"y":-77.699997,"z":395.000000,"width":77.000000,"height":104.599998,"length":77.000000,"weight":70.500000,"platform":"platform09","order":65,"material":"","type":1,"place":100},{"boxId":"942677801023486","x":4.600000,"y":-77.699997,"z":472.000000,"width":77.000000,"height":104.599998,"length":77.000000,"weight":70.500000,"platform":"platform09","order":66,"material":"","type":1,"place":100},{"boxId":"942677801023466","x":4.600000,"y":-77.699997,"z":549.000000,"width":77.000000,"height":104.599998,"length":77.000000,"weight":70.000000,"platform":"platform09","order":67,"material":"","type":1,"place":100},{"boxId":"942677801023483","x":4.600000,"y":27.600000,"z":-452.000000,"width":77.000000,"height":106.000000,"length":77.000000,"weight":70.500000,"platform":"platform09","order":68,"material":"","type":1,"place":100},{"boxId":"942677801022649","x":-3.400000,"y":102.199997,"z":-468.250000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":10.000000,"platform":"platform09","order":69,"material":"","type":1,"place":200},{"boxId":"942677801023482","x":4.600000,"y":27.250000,"z":-375.000000,"width":77.000000,"height":105.300003,"length":77.000000,"weight":71.500000,"platform":"platform09","order":70,"material":"","type":1,"place":100},{"boxId":"942677801023478","x":4.600000,"y":27.250000,"z":-298.000000,"width":77.000000,"height":105.300003,"length":77.000000,"weight":70.000000,"platform":"platform09","order":71,"material":"","type":1,"place":100},{"boxId":"942677801023480","x":4.600000,"y":27.250000,"z":-221.000000,"width":77.000000,"height":105.300003,"length":77.000000,"weight":70.000000,"platform":"platform09","order":72,"material":"","type":1,"place":100},{"boxId":"942677801021590","x":-13.150000,"y":104.650002,"z":-372.750000,"width":41.500000,"height":49.500000,"length":81.500000,"weight":37.000000,"platform":"platform09","order":73,"material":"","type":1,"place":100},{"boxId":"942677801021596","x":-13.150000,"y":104.650002,"z":-291.250000,"width":41.500000,"height":49.500000,"length":81.500000,"weight":30.500000,"platform":"platform09","order":74,"material":"","type":1,"place":100},{"boxId":"942677801025313","x":-3.400000,"y":101.500000,"z":-228.250000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":10.000000,"platform":"platform09","order":75,"material":"","type":1,"place":200},{"boxId":"942677801023471","x":4.600000,"y":26.900000,"z":-144.000000,"width":77.000000,"height":104.599998,"length":77.000000,"weight":70.000000,"platform":"platform09","order":76,"material":"","type":1,"place":100},{"boxId":"942677801023477","x":4.600000,"y":26.900000,"z":-67.000000,"width":77.000000,"height":104.599998,"length":77.000000,"weight":70.000000,"platform":"platform09","order":77,"material":"","type":1,"place":100},{"boxId":"942677801023484","x":4.600000,"y":26.900000,"z":10.000000,"width":77.000000,"height":104.599998,"length":77.000000,"weight":70.000000,"platform":"platform09","order":78,"material":"","type":1,"place":100},{"boxId":"942677801023491","x":4.600000,"y":26.900000,"z":87.000000,"width":77.000000,"height":104.599998,"length":77.000000,"weight":70.000000,"platform":"platform09","order":79,"material":"","type":1,"place":100},{"boxId":"94267780101Z738","x":-14.600000,"y":88.500000,"z":-163.199997,"width":38.599998,"height":18.600000,"length":38.599998,"weight":5.980000,"platform":"platform09","order":80,"material":"","type":1,"place":100},{"boxId":"942677801023444","x":4.600000,"y":26.549999,"z":164.000000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":72.500000,"platform":"platform09","order":81,"material":"","type":1,"place":100},{"boxId":"942677801023450","x":4.600000,"y":26.549999,"z":241.000000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":72.500000,"platform":"platform09","order":82,"material":"","type":1,"place":100},{"boxId":"942677801023453","x":4.600000,"y":26.549999,"z":318.000000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":72.500000,"platform":"platform09","order":83,"material":"","type":1,"place":100},{"boxId":"942677801023456","x":4.600000,"y":26.549999,"z":395.000000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":72.500000,"platform":"platform09","order":84,"material":"","type":1,"place":100},{"boxId":"942677801023459","x":4.600000,"y":26.549999,"z":472.000000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":72.500000,"platform":"platform09","order":85,"material":"","type":1,"place":100},{"boxId":"942677801023460","x":4.600000,"y":26.549999,"z":549.000000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":72.500000,"platform":"platform09","order":86,"material":"","type":1,"place":100},{"boxId":"942677801025120","x":71.099998,"y":-100.750000,"z":-446.500000,"width":56.000000,"height":58.500000,"length":88.000000,"weight":172.500000,"platform":"platform09","order":87,"material":"","type":1,"place":100},{"boxId":"942677801026556","x":71.099998,"y":-100.750000,"z":-358.500000,"width":56.000000,"height":58.500000,"length":88.000000,"weight":169.500000,"platform":"platform09","order":88,"material":"","type":1,"place":100},{"boxId":"942677801026559","x":71.099998,"y":-42.250000,"z":-446.500000,"width":56.000000,"height":58.500000,"length":88.000000,"weight":169.500000,"platform":"platform09","order":89,"material":"","type":1,"place":100},{"boxId":"94267780102A263","x":71.099998,"y":-42.250000,"z":-358.500000,"width":56.000000,"height":58.500000,"length":88.000000,"weight":159.500000,"platform":"platform09","order":90,"material":"","type":1,"place":100},{"boxId":"942677801026535","x":71.099998,"y":16.250000,"z":-446.500000,"width":56.000000,"height":58.500000,"length":88.000000,"weight":103.500000,"platform":"platform09","order":91,"material":"","type":1,"place":100},{"boxId":"942677801026385","x":71.099998,"y":16.250000,"z":-358.500000,"width":56.000000,"height":58.500000,"length":88.000000,"weight":102.500000,"platform":"platform09","order":92,"material":"","type":1,"place":100},{"boxId":"942677801026533","x":71.099998,"y":74.750000,"z":-446.500000,"width":56.000000,"height":58.500000,"length":88.000000,"weight":102.000000,"platform":"platform09","order":93,"material":"","type":1,"place":100},{"boxId":"942677801021608","x":71.099998,"y":74.750000,"z":-358.500000,"width":56.000000,"height":58.500000,"length":88.000000,"weight":43.500000,"platform":"platform09","order":94,"material":"","type":1,"place":100},{"boxId":"942677801022143","x":71.099998,"y":-100.750000,"z":-270.500000,"width":56.000000,"height":58.500000,"length":88.000000,"weight":38.500000,"platform":"platform09","order":95,"material":"","type":1,"place":100},{"boxId":"942677801022138","x":71.099998,"y":-42.250000,"z":-270.500000,"width":56.000000,"height":58.500000,"length":88.000000,"weight":37.000000,"platform":"platform09","order":96,"material":"","type":1,"place":100},{"boxId":"942677801021597","x":73.099998,"y":-100.300003,"z":-186.500000,"width":60.000000,"height":59.400002,"length":80.000000,"weight":25.000000,"platform":"platform09","order":97,"material":"","type":1,"place":100},{"boxId":"94267780102A276","x":-75.900002,"y":-97.750000,"z":-454.000000,"width":80.000000,"height":64.500000,"length":120.000000,"weight":108.500000,"platform":"platform09","order":98,"material":"","type":1,"place":100},{"boxId":"942677801026501","x":-75.900002,"y":-33.250000,"z":-454.000000,"width":80.000000,"height":64.500000,"length":120.000000,"weight":99.500000,"platform":"platform09","order":99,"material":"","type":1,"place":100},{"boxId":"942677801021514","x":-75.900002,"y":31.250000,"z":-454.000000,"width":80.000000,"height":64.500000,"length":120.000000,"weight":65.000000,"platform":"platform09","order":100,"material":"","type":1,"place":100},{"boxId":"942677801026506","x":-77.400002,"y":90.500000,"z":-475.500000,"width":77.000000,"height":54.000000,"length":77.000000,"weight":60.500000,"platform":"platform09","order":101,"material":"","type":1,"place":100},{"boxId":"942677801023461","x":-77.400002,"y":-78.050003,"z":-355.500000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":72.500000,"platform":"platform09","order":102,"material":"","type":1,"place":100},{"boxId":"942677801023447","x":-77.400002,"y":-78.050003,"z":-278.500000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":72.000000,"platform":"platform09","order":103,"material":"","type":1,"place":100},{"boxId":"942677801023448","x":-77.400002,"y":-78.050003,"z":-201.500000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":72.000000,"platform":"platform09","order":104,"material":"","type":1,"place":100},{"boxId":"942677801023449","x":-77.400002,"y":-78.050003,"z":-124.500000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":72.000000,"platform":"platform09","order":105,"material":"","type":1,"place":100},{"boxId":"942677801023451","x":-77.400002,"y":-78.050003,"z":-47.500000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":72.000000,"platform":"platform09","order":106,"material":"","type":1,"place":100},{"boxId":"942677801023452","x":-77.400002,"y":-78.050003,"z":29.500000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":72.000000,"platform":"platform09","order":107,"material":"","type":1,"place":100},{"boxId":"942677801023455","x":-77.400002,"y":-78.050003,"z":106.500000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":72.000000,"platform":"platform09","order":108,"material":"","type":1,"place":100},{"boxId":"942677801023458","x":-77.400002,"y":-78.050003,"z":183.500000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":72.000000,"platform":"platform09","order":109,"material":"","type":1,"place":100},{"boxId":"942677801023462","x":-77.400002,"y":-78.050003,"z":260.500000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":72.000000,"platform":"platform09","order":110,"material":"","type":1,"place":100},{"boxId":"942677801023468","x":-77.400002,"y":-78.050003,"z":337.500000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":71.500000,"platform":"platform09","order":111,"material":"","type":1,"place":100},{"boxId":"942677801023465","x":-77.400002,"y":25.850000,"z":-355.500000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":71.000000,"platform":"platform09","order":112,"material":"","type":1,"place":100},{"boxId":"942677801023467","x":-77.400002,"y":25.850000,"z":-278.500000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":70.500000,"platform":"platform09","order":113,"material":"","type":1,"place":100},{"boxId":"942677801023472","x":-77.400002,"y":25.850000,"z":-201.500000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":70.500000,"platform":"platform09","order":114,"material":"","type":1,"place":100},{"boxId":"942677801023476","x":-77.400002,"y":25.850000,"z":-124.500000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":70.500000,"platform":"platform09","order":115,"material":"","type":1,"place":100},{"boxId":"942677801023474","x":-77.400002,"y":25.850000,"z":-47.500000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":70.000000,"platform":"platform09","order":116,"material":"","type":1,"place":100},{"boxId":"942677801023490","x":-77.400002,"y":25.850000,"z":29.500000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":70.000000,"platform":"platform09","order":117,"material":"","type":1,"place":100},{"boxId":"942677801023492","x":-77.400002,"y":25.850000,"z":106.500000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":70.000000,"platform":"platform09","order":118,"material":"","type":1,"place":100},{"boxId":"942677801023463","x":-77.400002,"y":25.850000,"z":183.500000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":69.500000,"platform":"platform09","order":119,"material":"","type":1,"place":100},{"boxId":"942677801023487","x":-77.400002,"y":25.850000,"z":260.500000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":69.500000,"platform":"platform09","order":120,"material":"","type":1,"place":100},{"boxId":"942677801023489","x":-77.400002,"y":25.850000,"z":337.500000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":69.500000,"platform":"platform09","order":121,"material":"","type":1,"place":100},{"boxId":"942677801023488","x":-77.400002,"y":-78.050003,"z":414.500000,"width":77.000000,"height":103.900002,"length":77.000000,"weight":69.000000,"platform":"platform09","order":122,"material":"","type":1,"place":100},{"boxId":"942677801023454","x":-77.400002,"y":25.500000,"z":414.500000,"width":77.000000,"height":103.199997,"length":77.000000,"weight":71.500000,"platform":"platform09","order":123,"material":"","type":1,"place":100},{"boxId":"942677801021522","x":2.100000,"y":89.449997,"z":-71.150002,"width":72.000000,"height":20.500000,"length":145.500000,"weight":23.000000,"platform":"platform02","order":124,"material":"","type":1,"place":100},{"boxId":"942677801021523","x":2.100000,"y":109.949997,"z":-71.150002,"width":72.000000,"height":20.500000,"length":145.500000,"weight":23.000000,"platform":"platform02","order":125,"material":"","type":1,"place":100},{"boxId":"942677801021524","x":2.100000,"y":88.750000,"z":198.250000,"width":72.000000,"height":20.500000,"length":145.500000,"weight":23.000000,"platform":"platform02","order":126,"material":"","type":1,"place":100},{"boxId":"942677801021525","x":2.100000,"y":109.250000,"z":198.250000,"width":72.000000,"height":20.500000,"length":145.500000,"weight":23.000000,"platform":"platform02","order":127,"material":"","type":1,"place":100},{"boxId":"942677801021531","x":-9.900000,"y":96.000000,"z":427.500000,"width":48.000000,"height":35.000000,"length":313.000000,"weight":63.000000,"platform":"platform07","order":128,"material":"","type":1,"place":100},{"boxId":"942677801021532","x":67.099998,"y":-112.500000,"z":10.000000,"width":48.000000,"height":35.000000,"length":313.000000,"weight":63.000000,"platform":"platform07","order":129,"material":"","type":1,"place":100},{"boxId":"942677801020274","x":-16.650000,"y":124.949997,"z":-131.149994,"width":25.500000,"height":9.500000,"length":34.500000,"weight":1.180000,"platform":"platform08","order":130,"material":"","type":1,"place":200},{"boxId":"94267780101Q396","x":-14.650000,"y":124.500000,"z":143.250000,"width":35.500000,"height":10.000000,"length":38.500000,"weight":1.350000,"platform":"platform08","order":131,"material":"","type":1,"place":200},{"boxId":"942677801022586","x":23.850000,"y":124.500000,"z":143.250000,"width":35.500000,"height":10.000000,"length":38.500000,"weight":1.020000,"platform":"platform08","order":132,"material":"","type":1,"place":200},{"boxId":"942677801022516","x":-26.150000,"y":118.000000,"z":370.000000,"width":15.500000,"height":9.000000,"length":198.000000,"weight":4.050000,"platform":"platform08","order":133,"material":"","type":1,"place":100},{"boxId":"942677801022546","x":-10.650000,"y":118.000000,"z":370.000000,"width":15.500000,"height":9.000000,"length":198.000000,"weight":4.050000,"platform":"platform08","order":134,"material":"","type":1,"place":100},{"boxId":"942677801022556","x":4.850000,"y":118.000000,"z":370.000000,"width":15.500000,"height":9.000000,"length":198.000000,"weight":4.050000,"platform":"platform08","order":135,"material":"","type":1,"place":100},{"boxId":"942677801022461","x":21.850000,"y":83.000000,"z":370.000000,"width":15.500000,"height":9.000000,"length":198.000000,"weight":4.050000,"platform":"platform08","order":136,"material":"","type":1,"place":100},{"boxId":"942677801022526","x":21.850000,"y":92.000000,"z":370.000000,"width":15.500000,"height":9.000000,"length":198.000000,"weight":3.700000,"platform":"platform08","order":137,"material":"","type":1,"place":100},{"boxId":"942677801022541","x":21.850000,"y":101.000000,"z":370.000000,"width":15.500000,"height":9.000000,"length":198.000000,"weight":3.700000,"platform":"platform08","order":138,"material":"","type":1,"place":100},{"boxId":"942677801022536","x":21.850000,"y":110.000000,"z":370.000000,"width":15.500000,"height":9.000000,"length":198.000000,"weight":3.700000,"platform":"platform08","order":139,"material":"","type":1,"place":100},{"boxId":"942677801022531","x":21.850000,"y":119.000000,"z":370.000000,"width":15.500000,"height":9.000000,"length":198.000000,"weight":3.700000,"platform":"platform08","order":140,"material":"","type":1,"place":100},{"boxId":"942677801026493","x":70.849998,"y":114.750000,"z":-469.250000,"width":42.500000,"height":21.500000,"length":55.500000,"weight":7.680000,"platform":"platform08","order":141,"material":"","type":1,"place":200},{"boxId":"942677801026718","x":61.849998,"y":115.750000,"z":-429.750000,"width":36.500000,"height":23.500000,"length":37.500000,"weight":2.500000,"platform":"platform08","order":142,"material":"","type":1,"place":200},{"boxId":"942677801026482","x":61.599998,"y":115.750000,"z":-393.500000,"width":36.000000,"height":23.500000,"length":37.000000,"weight":4.720000,"platform":"platform08","order":143,"material":"","type":1,"place":200},{"boxId":"942677801026484","x":61.599998,"y":115.750000,"z":-357.500000,"width":36.000000,"height":23.500000,"length":37.000000,"weight":3.840000,"platform":"platform08","order":144,"material":"","type":1,"place":200},{"boxId":"94267780101E298","x":69.599998,"y":4.750000,"z":-295.500000,"width":38.000000,"height":35.500000,"length":53.000000,"weight":7.700000,"platform":"platform08","order":145,"material":"","type":1,"place":200},{"boxId":"94267780102A258","x":61.849998,"y":40.000000,"z":-295.750000,"width":37.500000,"height":35.000000,"length":37.500000,"weight":4.850000,"platform":"platform08","order":146,"material":"","type":1,"place":100},{"boxId":"942677801026497","x":62.849998,"y":-3.750000,"z":-256.750000,"width":39.500000,"height":18.500000,"length":39.500000,"weight":3.420000,"platform":"platform08","order":147,"material":"","type":1,"place":100},{"boxId":"942677801026495","x":62.849998,"y":14.750000,"z":-256.750000,"width":39.500000,"height":18.500000,"length":39.500000,"weight":3.420000,"platform":"platform08","order":148,"material":"","type":1,"place":100},{"boxId":"942677801026490","x":62.849998,"y":33.250000,"z":-256.750000,"width":39.500000,"height":18.500000,"length":39.500000,"weight":3.420000,"platform":"platform08","order":149,"material":"","type":1,"place":100},{"boxId":"942677801026488","x":62.849998,"y":51.750000,"z":-256.750000,"width":39.500000,"height":18.500000,"length":39.500000,"weight":3.420000,"platform":"platform08","order":150,"material":"","type":1,"place":100},{"boxId":"942677801026486","x":62.849998,"y":70.250000,"z":-256.750000,"width":39.500000,"height":18.500000,"length":39.500000,"weight":3.420000,"platform":"platform08","order":151,"material":"","type":1,"place":100},{"boxId":"942677801022912","x":63.849998,"y":-70.250000,"z":-105.750000,"width":41.500000,"height":49.500000,"length":81.500000,"weight":32.000000,"platform":"platform08","order":152,"material":"","type":1,"place":100},{"boxId":"942677801022918","x":63.849998,"y":-70.250000,"z":-24.250000,"width":41.500000,"height":49.500000,"length":81.500000,"weight":31.799999,"platform":"platform08","order":153,"material":"","type":1,"place":100},{"boxId":"942677801026539","x":63.849998,"y":-70.250000,"z":57.250000,"width":41.500000,"height":49.500000,"length":81.500000,"weight":31.700001,"platform":"platform08","order":154,"material":"","type":1,"place":100},{"boxId":"942677801025861","x":63.849998,"y":-20.750000,"z":-105.750000,"width":41.500000,"height":49.500000,"length":81.500000,"weight":31.700001,"platform":"platform08","order":155,"material":"","type":1,"place":100},{"boxId":"942677801022914","x":63.849998,"y":-20.750000,"z":-24.250000,"width":41.500000,"height":49.500000,"length":81.500000,"weight":31.600000,"platform":"platform08","order":156,"material":"","type":1,"place":100},{"boxId":"942677801022922","x":63.849998,"y":-20.750000,"z":57.250000,"width":41.500000,"height":49.500000,"length":81.500000,"weight":31.600000,"platform":"platform08","order":157,"material":"","type":1,"place":100},{"boxId":"942677801022926","x":63.849998,"y":28.750000,"z":-105.750000,"width":41.500000,"height":49.500000,"length":81.500000,"weight":31.600000,"platform":"platform08","order":158,"material":"","type":1,"place":100},{"boxId":"942677801022900","x":63.849998,"y":28.750000,"z":-24.250000,"width":41.500000,"height":49.500000,"length":81.500000,"weight":31.500000,"platform":"platform08","order":159,"material":"","type":1,"place":100},{"boxId":"942677801022920","x":63.849998,"y":28.750000,"z":57.250000,"width":41.500000,"height":49.500000,"length":81.500000,"weight":31.500000,"platform":"platform08","order":160,"material":"","type":1,"place":100},{"boxId":"942677801022916","x":63.849998,"y":78.250000,"z":-105.750000,"width":41.500000,"height":49.500000,"length":81.500000,"weight":31.500000,"platform":"platform08","order":161,"material":"","type":1,"place":100},{"boxId":"942677801022910","x":63.849998,"y":78.250000,"z":-24.250000,"width":41.500000,"height":49.500000,"length":81.500000,"weight":31.400000,"platform":"platform08","order":162,"material":"","type":1,"place":100},{"boxId":"942677801022744","x":63.849998,"y":78.250000,"z":57.250000,"width":41.500000,"height":49.500000,"length":81.500000,"weight":31.400000,"platform":"platform08","order":163,"material":"","type":1,"place":100},{"boxId":"942677801022521","x":50.849998,"y":107.500000,"z":-47.500000,"width":15.500000,"height":9.000000,"length":198.000000,"weight":3.700000,"platform":"platform08","order":164,"material":"","type":1,"place":100},{"boxId":"942677801022551","x":50.849998,"y":116.500000,"z":-47.500000,"width":15.500000,"height":9.000000,"length":198.000000,"weight":3.700000,"platform":"platform08","order":165,"material":"","type":1,"place":100},{"boxId":"94267780102A201","x":79.099998,"y":-68.000000,"z":282.500000,"width":72.000000,"height":124.000000,"length":232.000000,"weight":264.500000,"platform":"platform08","order":166,"material":"","type":1,"place":100},{"boxId":"942677801023647","x":79.099998,"y":56.000000,"z":282.500000,"width":72.000000,"height":124.000000,"length":232.000000,"weight":264.500000,"platform":"platform08","order":167,"material":"","type":1,"place":100},{"boxId":"942677801023661","x":76.599998,"y":-87.699997,"z":451.500000,"width":67.000000,"height":84.599998,"length":106.000000,"weight":147.500000,"platform":"platform08","order":168,"material":"","type":1,"place":100},{"boxId":"942677801023660","x":76.599998,"y":-3.100000,"z":451.500000,"width":67.000000,"height":84.599998,"length":106.000000,"weight":143.000000,"platform":"platform08","order":169,"material":"","type":1,"place":100},{"boxId":"942677801023649","x":76.599998,"y":81.500000,"z":451.500000,"width":67.000000,"height":84.599998,"length":106.000000,"weight":143.000000,"platform":"platform08","order":170,"material":"","type":1,"place":100},{"boxId":"942677801022493","x":79.099998,"y":-102.250000,"z":549.000000,"width":72.000000,"height":55.500000,"length":89.000000,"weight":92.000000,"platform":"platform08","order":171,"material":"","type":1,"place":100},{"boxId":"942677801022401","x":79.099998,"y":-46.750000,"z":549.000000,"width":72.000000,"height":55.500000,"length":89.000000,"weight":92.000000,"platform":"platform08","order":172,"material":"","type":1,"place":100},{"boxId":"942677801022437","x":79.099998,"y":8.750000,"z":549.000000,"width":72.000000,"height":55.500000,"length":89.000000,"weight":92.000000,"platform":"platform08","order":173,"material":"","type":1,"place":100},{"boxId":"942677801022449","x":79.099998,"y":64.250000,"z":549.000000,"width":72.000000,"height":55.500000,"length":89.000000,"weight":92.000000,"platform":"platform08","order":174,"material":"","type":1,"place":100},{"boxId":"942677801025881","x":75.599998,"y":111.000000,"z":546.000000,"width":65.000000,"height":38.000000,"length":83.000000,"weight":28.000000,"platform":"platform08","order":175,"material":"","type":1,"place":100},{"boxId":"942677801022924","x":-75.150002,"y":102.550003,"z":-373.250000,"width":41.500000,"height":49.500000,"length":81.500000,"weight":31.200001,"platform":"platform08","order":176,"material":"","type":1,"place":200},{"boxId":"94267780101E300","x":-78.900002,"y":88.800003,"z":-248.500000,"width":74.000000,"height":22.000000,"length":208.000000,"weight":18.500000,"platform":"platform08","order":177,"material":"","type":1,"place":100},{"boxId":"94267780101E301","x":-78.900002,"y":110.800003,"z":-248.500000,"width":74.000000,"height":22.000000,"length":208.000000,"weight":18.500000,"platform":"platform08","order":178,"material":"","type":1,"place":100},{"boxId":"942677801025352","x":-83.400002,"y":96.800003,"z":-103.000000,"width":65.000000,"height":38.000000,"length":83.000000,"weight":27.500000,"platform":"platform08","order":179,"material":"","type":1,"place":100},{"boxId":"942677801022646","x":-83.400002,"y":96.800003,"z":-20.000000,"width":65.000000,"height":38.000000,"length":83.000000,"weight":27.500000,"platform":"platform08","order":180,"material":"","type":1,"place":100},{"boxId":"942677801022648","x":-83.400002,"y":96.800003,"z":63.000000,"width":65.000000,"height":38.000000,"length":83.000000,"weight":27.500000,"platform":"platform08","order":181,"material":"","type":1,"place":100},{"boxId":"942677801023650","x":-75.900002,"y":-87.750000,"z":513.000000,"width":80.000000,"height":84.500000,"length":120.000000,"weight":134.000000,"platform":"platform08","order":182,"material":"","type":1,"place":100},{"boxId":"94267780102A213","x":-75.900002,"y":-3.250000,"z":513.000000,"width":80.000000,"height":84.500000,"length":120.000000,"weight":133.500000,"platform":"platform08","order":183,"material":"","type":1,"place":100},{"boxId":"94267780102A214","x":-75.900002,"y":81.250000,"z":513.000000,"width":80.000000,"height":84.500000,"length":120.000000,"weight":133.500000,"platform":"platform08","order":184,"material":"","type":1,"place":100}]';
			var jsonstr2 = '{"container_length":1192.000000,"container_width":231.800003,"container_height":260.000000,"container_max_load":23000.000000,"container_type_name":"40HQ"}'
            var objectArray= JSON.parse(jsonstr);
			var truckJsonObj = JSON.parse(jsonstr2);
            var container, stats;
            var camera, controls, scene, projector, renderer;
            var objects = [], plane;
            var mouse = new THREE.Vector2(), offset = new THREE.Vector3(), INTERSECTED, SELECTED; 
            init();
            animate();
            function init() {
                container = document.createElement( 'div' );
                document.body.appendChild( container );
                camera = new THREE.PerspectiveCamera( 70, window.innerWidth / window.innerHeight, 1, 10000 );
                camera.position.x = -600;
                camera.position.y = 400;
                camera.position.z = 1000;
                controls = new THREE.TrackballControls( camera );
                controls.rotateSpeed = 1.0;
                controls.zoomSpeed = 1.2;
                controls.panSpeed = 0.8;
                controls.noZoom = false;
                controls.noPan = true;
                controls.staticMoving = false;
                controls.dynamicDampingFactor = 0.3;
                scene = new THREE.Scene();
                var ambientLight = new THREE.AmbientLight( Math.random() *0xffffff );
                scene.add( ambientLight );
                var directionalLight = new THREE.DirectionalLight( Math.random() * 0xffffff );
                directionalLight.position.set( 0, 1, 0 );
                scene.add( directionalLight );
                var pointLight = new THREE.PointLight( 0xff0000, 1, 500 );
                pointLight.position.set( 0, 0, -200 );
                scene.add( pointLight );

                container_length = truckJsonObj.container_length;
                container_width = truckJsonObj.container_width;
                container_height = truckJsonObj.container_height;
                var cube_1 = new THREE.Mesh(
                    new THREE.BoxGeometry( container_width, container_height, container_length, 1,1,1 ), 
                    new THREE.MeshBasicMaterial( { color:0xefb73e, wireframe:true } )
                );
                cube_1.position.x = 0;
                cube_1.position.y = 0;
                cube_1.position.z = 0;
                scene.add( cube_1 );

                truck_head_length = 145;
                var truck_head_1 = new THREE.Mesh(
                    new THREE.BoxGeometry( 200, 100, truck_head_length, 1, 1, 5 ), 
                    new THREE.MeshBasicMaterial( { color: 0xffffff, wireframe:true } )
                );
                truck_head_1.position.x = 0;
                truck_head_1.position.y = -50;
                truck_head_1.position.z = -(container_length/2 + truck_head_length/2);
                scene.add( truck_head_1 );
                
                truck_head_length_2 = 80;
                var truck_head_2 = new THREE.Mesh(
                    new THREE.BoxGeometry( 170, 60, truck_head_length_2, 1, 0, 5 ), 
                    new THREE.MeshBasicMaterial( { color: 0xffffff, wireframe:true } )
                );
                truck_head_2.position.x = 0;
                truck_head_2.position.y = 30;
                truck_head_2.position.z = -(container_length/2 + truck_head_length_2/2);
                scene.add( truck_head_2 );
                
                truck_head_chimney_radius = 7;
                var truck_head_chimney1 = new THREE.Mesh(
                    new THREE.CylinderGeometry( truck_head_chimney_radius, truck_head_chimney_radius, 300, 20 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_head_chimney1.position.x = 100;
                truck_head_chimney1.position.y = 50;
                truck_head_chimney1.position.z = -(container_length/2 + truck_head_chimney_radius/2);
                scene.add( truck_head_chimney1 );
                
                var truck_head_chimney2 = new THREE.Mesh(
                    new THREE.CylinderGeometry( truck_head_chimney_radius, truck_head_chimney_radius, 300, 20 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_head_chimney2.position.x = -100;
                truck_head_chimney2.position.y = 50;
                truck_head_chimney2.position.z = -(container_length/2 + truck_head_chimney_radius/2);
                scene.add( truck_head_chimney2 );
        
                var truck_wheel_1 = new THREE.Mesh(new THREE.CylinderGeometry( 50, 50, 20, 50 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_wheel_1.position.x = 110;
                truck_wheel_1.position.y = -100;
                truck_wheel_1.position.z = -(container_length/2 + truck_head_length_2/2 + 20) ;
                truck_wheel_1.rotation.x = 0;
                truck_wheel_1.rotation.y = 0;
                truck_wheel_1.rotation.z = 1.6;
                scene.add( truck_wheel_1 );
                
                var truck_wheel_2 = new THREE.Mesh(new THREE.CylinderGeometry( 50, 50, 20, 50 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_wheel_2.position.x = -110;
                truck_wheel_2.position.y = -100;
                truck_wheel_2.position.z = -(container_length/2 + truck_head_length_2/2 + 20);
                truck_wheel_2.rotation.x = 0;
                truck_wheel_2.rotation.y = 0;
                truck_wheel_2.rotation.z = 1.6;
                scene.add( truck_wheel_2 );

                offset_2 = -240;
                var truck_wheel_5 = new THREE.Mesh(new THREE.CylinderGeometry( 50, 50, 20, 50 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_wheel_5.position.x = container_width/2 + 5;
                truck_wheel_5.position.y = -100;
                truck_wheel_5.position.z = (container_length/2 + truck_head_length_2/2 + offset_2) ;
                truck_wheel_5.rotation.x = 0;
                truck_wheel_5.rotation.y = 0;
                truck_wheel_5.rotation.z = 1.6;
                scene.add( truck_wheel_5 );

                var truck_wheel_6 = new THREE.Mesh(new THREE.CylinderGeometry( 50, 50, 20, 50 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_wheel_6.position.x = -container_width/2 - 5;
                truck_wheel_6.position.y = -100;
                truck_wheel_6.position.z = (container_length/2 + truck_head_length_2/2 + offset_2);
                truck_wheel_6.rotation.x = 0;
                truck_wheel_6.rotation.y = 0;
                truck_wheel_6.rotation.z = 1.6;
                scene.add( truck_wheel_6 );

                for (var i in objectArray) {
                    if (objectArray[i].type==2) {
						var cylinderTopR = objectArray[i].length / 2;
						var cylinderHeight = objectArray[i].height;
						if (objectArray[i].place == 1 || objectArray[i].place == 2)
						{
							cylinderHeight = objectArray[i].width;
						}
						
                        var object2 = new THREE.Mesh(
						    new THREE.CylinderGeometry(cylinderTopR, cylinderTopR, cylinderHeight, 60),
                            new THREE.MeshBasicMaterial( { color: Math.random() * 0xffffff , wireframe:false } ) 
                        ); 
                        object2.position.x = objectArray[i].x;
                        object2.position.y = objectArray[i].y;
                        object2.position.z = objectArray[i].z;
                        if (objectArray[i].place==1) {
                            object2.rotation.z = 55;
                        }
                        if (objectArray[i].place==2) {
                            object2.rotation.x = 55;
                        }
                        object2.width = objectArray[i].width;
                        object2.height = objectArray[i].height;
                        object2.length = objectArray[i].length;
                        object2.weight = objectArray[i].weight;
                        object2.platform = objectArray[i].platform;
                        object2.order = objectArray[i].order;
                        object2.materialInfo = objectArray[i].material;
                        object2.boxId = objectArray[i].boxId;
                        object2.type = objectArray[i].type;
                        object2.place = objectArray[i].place;
                        scene.add( object2 );
                        objects.push( object2 );
                    }
                    if (objectArray[i].type==1) {
						if (objectArray[i].place == 200)
						{
							var box_length = objectArray[i].width;
                            var box_width = objectArray[i].length;
						}
						else
						{
							var box_length = objectArray[i].length;
							var box_width = objectArray[i].width;
						}
						var box_height = objectArray[i].height;
                        var object = new THREE.Mesh(
                            new THREE.BoxGeometry( box_width, box_height, box_length, 1, 1, 1 ), 
                            new THREE.MeshBasicMaterial( { color: Math.random() * 0xffffff , wireframe:false } ) 
                        ); 
                        object.position.x = objectArray[i].x;
                        object.position.y = objectArray[i].y;
                        object.position.z = objectArray[i].z;
						object.length = objectArray[i].length;
						object.width = objectArray[i].width;
						object.height = objectArray[i].height;
                        object.weight = objectArray[i].weight;
                        object.platform = objectArray[i].platform;
                        object.order = objectArray[i].order;
                        object.materialInfo = objectArray[i].material;
                        object.boxId = objectArray[i].boxId;
                        object.type = objectArray[i].type;
                        object.place = objectArray[i].place;
                        scene.add( object );
                        objects.push( object );
                    }
                }

                plane = new THREE.Mesh(
                    new THREE.PlaneGeometry( 2000, 2000, 8, 8 ),
                    new THREE.MeshBasicMaterial( { color: 0x000000, opacity: 0.25, transparent: true, wireframe: true } )
                );
                plane.visible = true;
                scene.add( plane );
                projector = new THREE.Projector();
                renderer = new THREE.WebGLRenderer( { antialias: true } );
                renderer.sortObjects = false;
                renderer.setSize( window.innerWidth, window.innerHeight );
                renderer.shadowMapEnabled = true;
                renderer.shadowMapType = THREE.PCFShadowMap;
                container.appendChild( renderer.domElement );

                stats = new Stats();
                stats.domElement.style.position = 'absolute';
                stats.domElement.style.top = '0px';
                container.appendChild( stats.domElement );

                window.addEventListener( 'resize', onWindowResize, false );
                renderer.domElement.addEventListener( 'mousemove', onDocumentMouseMove, false );
                renderer.domElement.addEventListener( 'mousedown', onDocumentMouseDown, false );
                renderer.domElement.addEventListener( 'mouseup', onDocumentMouseUp, false );
            }

            function onDocumentMouseMove( event ) {
                event.preventDefault();
                mouse.x = ( event.clientX / window.innerWidth ) * 2 - 1;
                mouse.y = - ( event.clientY / window.innerHeight ) * 2 + 1;
                var vector = new THREE.Vector3( mouse.x, mouse.y, 0.5 );
                projector.unprojectVector( vector, camera );
                var raycaster = new THREE.Raycaster( camera.position, vector.sub( camera.position ).normalize() );
                var intersects = raycaster.intersectObjects( objects );
                if ( intersects.length > 0 ) {
                    if ( INTERSECTED != intersects[ 0 ].object ) {
                        INTERSECTED = intersects[ 0 ].object;
                        plane.position.copy( INTERSECTED.position );
                        plane.lookAt( camera.position );
                    }
                    container.style.cursor = 'pointer';
                } else {
                    container.style.cursor = 'auto';
                }
            }

            function onDocumentMouseDown( event ) {
                event.preventDefault();
                var vector = new THREE.Vector3( mouse.x, mouse.y, 0.5 );
                projector.unprojectVector( vector, camera );
                var raycaster = new THREE.Raycaster( camera.position, vector.sub( camera.position ).normalize() );
                var intersects = raycaster.intersectObjects( objects );
                if ( intersects.length > 0 ) {
                    controls.enabled = false;  
                    SELECTED = intersects[ 0 ].object;
                    var info = '<B>' + 
                        'boxId: ' + SELECTED.boxId +
                        '</br> x: ' + SELECTED.position.x + 
                        '</br> y: ' + SELECTED.position.y + 
                        '</br> z: ' + SELECTED.position.z + 
                        '</br> width: ' + SELECTED.width + 
                        '</br> height: ' + SELECTED.height + 
                        '</br> length: ' + SELECTED.length + 
                        '</br> weight: ' + SELECTED.weight +
                        '</br> platform: ' + SELECTED.platform +
                        '</br> order: ' + SELECTED.order +
                        '</br> material: ' + SELECTED.materialInfo + 
                        '</br> type: ' + SELECTED.type + 
                        '</br> place: ' + SELECTED.place + 
                        '</B>' +
                        '</br>' + 
                        '--------------------------' + 
                        '</br>' +
                        'type(1:箱体 2:圆柱体)' +
                        '</br>' +
                        'place(1:品字型 2:田字型)';
                    $("#objectInfo").html(info);
                }
            }

            function onDocumentMouseUp( event ) {
                event.preventDefault();
                controls.enabled = true;
                if ( INTERSECTED ) {
                    plane.position.copy( INTERSECTED.position );
                    SELECTED = null;
                }
                container.style.cursor = 'auto';
            }

            function onWindowResize() {
                camera.aspect = window.innerWidth / window.innerHeight;
                camera.updateProjectionMatrix();
                renderer.setSize( window.innerWidth, window.innerHeight );
            }

            function animate() {
                requestAnimationFrame( animate );
                render();
                stats.update();
            }

            function render() {
                controls.update();
                renderer.render( scene, camera );
            }

        </script>
        <div id="objectInfo" class="a2"><br/>点击物体获取相关属性</div>
        <style>
            .a2{position:absolute; left:20px; top:50px; bottom:0px; width:180px; height:250px; z-index:9999; background: #00FFFF; font-weight:bold; }
        </style>
    </body>
</html>